import http from "../utils/http";
export default {
    login(username, password) {
        return http.posts("/sso/login", { username, password })
    },
    info(name) {
        return http.get("/sso/info", { name })
    },
    refreshToken() {
        return http.get("/sso/refreshToken")
    },
    register(password, telephone, username) {
        return http.posts("/sso/register", { password, telephone, username })
    },
    updatePassword(password, updatePassword, username) {
        return http.posts("/sso/updatePassword", { password, updatePassword, username })
    },
    wxLogin(code, encryptedData, iv) {
        return http.post("/sso/wx/login", { code, encryptedData, iv})
    },
	addPhone( code, encryptedData, iv,successKey){
		 return http.post("/sso/addPhone", { code, encryptedData, iv,successKey})
	}
}